package com.yunzone.cloud.modules.order.service;

import com.yunzone.cloud.common.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(value = "seata-account-service")
public interface AccountService {
    @PostMapping(value = "/account/decrease")
    Result decrease(@RequestParam("userId") Long userId,
                    @RequestParam("money") BigDecimal money);
}